package com.example.demo.demos.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AccessLevel;
import lombok.Data;
import lombok.experimental.FieldDefaults;

import java.util.ArrayList;
import java.util.List;

/**
 * @author lyh
 * @date 2025/9/17 13:53
 */
@ApiModel("机构树")
@Data
@FieldDefaults(level = AccessLevel.PRIVATE)
public class TreeNode {

    @ApiModelProperty("主键id")
    String id;

    @ApiModelProperty("名称")
    String name;

    @ApiModelProperty("父级id")
    String parentId;

    @ApiModelProperty("排序")
    Integer sort;

    @ApiModelProperty("人数")
    Integer personNum;

    @ApiModelProperty("人数")
    Integer totalNum;

    @ApiModelProperty("子节点列表")
    List<TreeNode> children = new ArrayList<>();
}
